package com.jianzh5.test;

/**
 * <p>
 * <code>ClientThread</code>
 * </p>
 *
 * @author jianzhang11
 * @version 1.0
 * @desc
 * @Date: 2016/9/22 10:51
 * @since 1.0
 */
public class ClientThread extends Thread{
    private Sequence sequence;

    public ClientThread(Sequence sequence) {
        this.sequence = sequence;
    }

    @Override public void run() {
        for(int i = 0 ;i <3 ;i++){
            System.out.println(Thread.currentThread().getName() + " => " + sequence.getNumber());
        }
    }
}
